package com.zhangzhan.gulimallproduct.feign;

import com.zhangzhan.gulimallcommcon.tos.SkuDiscountsEtc;
import com.zhangzhan.gulimallcommcon.tos.SpuBoundsTo;
import com.zhangzhan.gulimallcommcon.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/18 4:47
 */
@FeignClient(value = "gulimall-coupon",contextId = "")
public interface CouponFeignService {

    @RequestMapping(value = "/gulimallcoupon/skufullreduction/saveSkuDiscountsEtc",method = RequestMethod.POST)
    //@RequiresPermissions("gulimallcoupon:skufullreduction:list")
    public R saveSkuDiscountsEtc(@RequestBody List<SkuDiscountsEtc> skuDiscountsEts);


    @RequestMapping(value = "/gulimallcoupon/spubounds/save", method = RequestMethod.POST)
    //@RequiresPermissions("gulimallcoupon:spubounds:save")
    public R save(@RequestBody SpuBoundsTo spuBoundsTo);


}
